graphing the sine and cosine functions